#ifndef __GSTCAMERA_NODELET_H
#define __GSTCAMERA_NODELET_H

#include <nodelet/nodelet.h>
#include <gstcamera/gstcamera.h>

#include <boost/thread.hpp>
#include <boost/scoped_ptr.hpp>

namespace gstcamera
{
    class GstcamNodelet : public nodelet::Nodelet
    {
    public:
    //构造函数
        GstcamNodelet();
    //析构函数
        ~GstcamNodelet();
    virtual void onInit();
    
    private:
        boost::scoped_ptr<Gstcamera> gstcam_driver_;
        boost::scoped_ptr<boost::thread> stream_thread_;
    };
    
}


#endif  //end __GSTCAM_NODELET